package com.igeekhome.ccs.biz.impl;

import com.igeekhome.ccs.biz.IJobBiz;
import com.igeekhome.ccs.entity.Job;
import com.igeekhome.ccs.mapper.JobMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JobBizImpl implements IJobBiz {

    @Autowired
    JobMapper jobMapper;

    @Override
    public int createJob(int id) {
        return 0;
    }

    @Override
    public List<Job> select(Job jb) {
        return jobMapper.select(jb);
    }

    @Override
    public int newjob(Job jb) {
        return jobMapper.newjob(jb);
    }

    @Override
    public int updatastates(int jobId,String status, String content) {
        jobMapper.updatastates(jobId,status,content);
        return 0;
    }

    @Override
    public int deliverjob(int jobId, int customerId, String content) {
        return jobMapper.deliverjob(jobId,customerId,content);
    }

    @Override
    public int resetjob(Job jb) {
        jobMapper.resetjob(jb);
        return 0;
    }
}
